//
//  KYNavigationController.m
//  SwiftHealing
//
//  Created by chenchen on 16/8/18.
//  Copyright © 2016年 ios0610. All rights reserved.
//

#import "KYNavigationController.h"

@interface KYNavigationController ()

@end

@implementation KYNavigationController

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self.navigationBar setBarTintColor:[UIColor colorWithRed:245 / 255.0 green:69 / 255.0 blue:74 / 255.0 alpha:1]];
    [self.navigationBar setTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor whiteColor] }];
    [self.navigationBar setTintColor:[UIColor whiteColor]];
}

- (UIStatusBarStyle)preferredStatusBarStyle
{
    //设置导航栏电池颜色为白色
    return UIStatusBarStyleLightContent;
}

// push控制器的时候调用
- (void)pushViewController:(UIViewController*)viewController animated:(BOOL)animated
{

    if (self.viewControllers.count > 0) {
        // 只要push控制器 就要隐藏tabbar
        viewController.hidesBottomBarWhenPushed = YES;
    }

    [super pushViewController:viewController animated:animated];
}

#pragma mark - 侧滑控制器相关方法
//- (void)actionToggleLeftDrawer:(UIButton*)sender
//{
//    [[AppDelegate globalDelegate] toggleLeftDrawer:self animated:YES];
//}

@end
